package com.hxf.dto;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.PolymorphismType;

/**
 * 餐厅订单
 * 
 * @author tengyicheng
 * 
 */
@Entity
@Table(name = "rk_meal_order")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true, polymorphism = PolymorphismType.EXPLICIT)
public class MealOrderDto extends BaseDto {
	private String orderId;
	private String name;
	private String contact;
	private Double discountPrice;
	private Double costPrice;
	private String repastDate;
	private Integer peopleNum;
	private Integer boxId;
	private Integer sendSms;
	private Integer restaurantId;
	private Integer status;
	private Integer userId;
	
	public final static int SEND_SMS = 1;
	public final static int STATUS_VALUE = 0;
	
	public MealOrderDto() {}

	public MealOrderDto(String orderId, String name, String contact,
			String repastDate, Integer peopleNum, Integer boxId,
			Integer sendSms, Integer restaurantId, Integer status) {
		this.orderId = orderId;
		this.name = name;
		this.contact = contact;
		this.repastDate = repastDate;
		this.peopleNum = peopleNum;
		this.boxId = boxId;
		this.sendSms = sendSms;
		this.restaurantId = restaurantId;
		this.status = status;
	}

	@Id
	@Column(name = "order_id", unique = true, nullable = false)
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "contact")
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "repast_date")
	public String getRepastDate() {
		return repastDate;
	}

	public void setRepastDate(String repastDate) {
		this.repastDate = repastDate;
	}

	@Column(name = "people_num")
	public Integer getPeopleNum() {
		return peopleNum;
	}

	public void setPeopleNum(Integer peopleNum) {
		this.peopleNum = peopleNum;
	}

	@Column(name = "box_id")
	public Integer getBoxId() {
		return boxId;
	}

	public void setBoxId(Integer boxId) {
		this.boxId = boxId;
	}

	@Column(name = "send_sms")
	public Integer getSendSms() {
		return sendSms;
	}

	public void setSendSms(Integer sendSms) {
		this.sendSms = sendSms;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "discount_price")
	public Double getDiscountPrice() {
		return discountPrice;
	}

	public void setDiscountPrice(Double discountPrice) {
		this.discountPrice = discountPrice;
	}

	@Column(name = "cost_price")
	public Double getCostPrice() {
		return costPrice;
	}
 
	public void setCostPrice(Double costPrice) {
		this.costPrice = costPrice;
	}

	@Column(name = "restaurant_id")
	public Integer getRestaurantId() {
		return restaurantId;
	}

	public void setRestaurantId(Integer restaurantId) {
		this.restaurantId = restaurantId;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	} 
}
